package test_object;
import java.util.Arrays;

class Test2 {
    public int a;
    public String b;
    public Test2(int a, String b) {
        this.a = a;
        this.b = b;
    }
    @Override
    public String toString() {
        return "a = " + a +"\nb = " + b;
    }
}
class Test3 extends Test2 {
    int[] c;
    public Test3(int a, String b, int[] c) {
        super(a, b);
        this.c = c;
    }
    public String toString() {
        return "a = " + a + "\nb = " + b + "\nc = " + Arrays.toString(c);
    }
}
interface Ijoin {
    String toString();
}
class Test4 extends Test2 {
    public char c;
    public Test4(int a, String b, char c) {
        super(a, b);
        this.c = c;
    }

}

public class test {
    public static void main(String[] args) {
        Test2 test2 = new Test2(34, "hello world");
        int[] arr = {0, 1, 2, 3};
        Test3 test3 = new Test3(23, "Hello wjj", arr);
        System.out.println(test2);
        System.out.println(test3);
    }
}
